<html>
<head><meta charset="utf-8"><title>Collections beyond box, allocation fallibility · t-libs/wg-allocators · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/index.html">t-libs/wg-allocators</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Collections.20beyond.20box.2C.20allocation.20fallibility.html">Collections beyond box, allocation fallibility</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="164811285"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Collections%20beyond%20box%2C%20allocation%20fallibility/near/164811285" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> John Ericson <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Collections.20beyond.20box.2C.20allocation.20fallibility.html#164811285">(May 03 2019 at 17:04)</a>:</h4>
<p>Once <code>Box</code> is done,  I'll rebase <a href="https://github.com/rust-lang/rust/pull/52420" target="_blank" title="https://github.com/rust-lang/rust/pull/52420">https://github.com/rust-lang/rust/pull/52420</a> . The interesting thing is that this also solves the issue of fallible allocation by giving <code>Alloc</code> and associated error type.</p>



<a name="164812158"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Collections%20beyond%20box%2C%20allocation%20fallibility/near/164812158" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tim Diekmann <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Collections.20beyond.20box.2C.20allocation.20fallibility.html#164812158">(May 03 2019 at 17:15)</a>:</h4>
<p>Oh, I completely forgot that associating an error type to <code>Alloc</code> is still a thing.</p>



<a name="164814850"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Collections%20beyond%20box%2C%20allocation%20fallibility/near/164814850" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Simon Sapin <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Collections.20beyond.20box.2C.20allocation.20fallibility.html#164814850">(May 03 2019 at 17:49)</a>:</h4>
<p>I disagree that an associated error type “solves” infallible allocation. Returning <code>Result&lt;T, !&gt;</code> or <code>Result&lt;T, Infallible&gt;</code> is not the same as returning <code>T</code>.</p>



<a name="164814933"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/197181-t-libs/wg-allocators/topic/Collections%20beyond%20box%2C%20allocation%20fallibility/near/164814933" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Simon Sapin <a href="https://rust-lang.github.io/zulip_archive/stream/197181-t-libs/wg-allocators/topic/Collections.20beyond.20box.2C.20allocation.20fallibility.html#164814933">(May 03 2019 at 17:50)</a>:</h4>
<p>It’s a thing to the extent that we want to make it a thing. A new issue in the repo would be a good place to discuss use cases.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>